<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <link rel="stylesheet" href=" ./element.css">
</head>
<body>
<div id="collection">
    <div id="collection2">
    <el-button
            type="primary"
            v-loading.fullscreen.lock="fullscreenLoading">
        指令方式
    </el-button>
    </div>
</div>
</body>
<!-- import Vue before Element -->
<script src="./vue.js"></script>
<script src="./jquery.min.js"></script>
<script src="./element.js"></script>
<script>
    new Vue({
        el:"#collection",
        data:{
            fullscreenLoading: false
        },
        created(){
            //获取所需要数据，专题及所有商品
        },
        methods:{
            openFullScreen() {
                this.fullscreenLoading = true;
                setTimeout(() => {
                    this.fullscreenLoading = false;
                }, 2000);
            },
        }

    });
</script>
</html>